// This script runs the replication code for the paper in its entirety. 

/* Replace the below file path with the location of the replication package */
/* cd "c:\example\file\path\replication_package_schaller_eck_2023" */
cd "C:\Users\Chase Eck\Dropbox\research\hrsprojects\replication_package_schaller_eck_2023

/* Constructs data at wave-respondent-kid level */
do code/kid_parent_wave_file_construction.do 
/* Aggregates up wave-respondent-kid data to wave-respondent */
do code/parent_file_construction.do
/* Aggregates up wave-respondent-kid data to wave-kid */
do code/kid_wave_file_construction.do
/* Constructs correct transfer variables */
do code/construct_transfer_file.do
/* Construct analysis dataset */
do code/construct_analysis_file.do
/* and run almost all analysies 
Note this file runs borusyak.do and figure5_bygender */
do code/main_analysis.do
/* Construct data files for coefficient plots from regression results */
do code/coefplots.do
/* Construct tables C8 and C9 */
do code/construct_table_heterogeneity_informal_care.do

/* After running code/coefplots.do run draw_coefplot.R in R*/
/* You will need to set the proper working directory to be same as above */
/* This file plots the main regression results */

/* To get final tables and figures you need to compile 
the .tex files in the paper directory */

